package com.personal.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TEquipment {
    private Integer equipid;

    private String eqname;

    private String eqnum;

    @JsonFormat(pattern = "yyyy/MM/dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date prodate;

    private String promer;

    private String stockmer;

    @JsonFormat(pattern = "yyyy/MM/dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date buydate;

    private Float repairtime;

    private Float restricttime;

    private Float buymoney;

    private Integer nums;

    private String states;

    @Override
    public String toString() {
        return "TEquipment{" +
                "equipid=" + equipid +
                ", eqname='" + eqname + '\'' +
                ", eqnum='" + eqnum + '\'' +
                ", prodate=" + prodate +
                ", promer='" + promer + '\'' +
                ", stockmer='" + stockmer + '\'' +
                ", buydate=" + buydate +
                ", repairtime=" + repairtime +
                ", restricttime=" + restricttime +
                ", buymoney=" + buymoney +
                ", nums=" + nums +
                ", states='" + states + '\'' +
                '}';
    }

    public Integer getEquipid() {
        return equipid;
    }

    public void setEquipid(Integer equipid) {
        this.equipid = equipid;
    }

    public String getEqname() {
        return eqname;
    }

    public void setEqname(String eqname) {
        this.eqname = eqname == null ? null : eqname.trim();
    }

    public String getEqnum() {
        return eqnum;
    }

    public void setEqnum(String eqnum) {
        this.eqnum = eqnum == null ? null : eqnum.trim();
    }

    public Date getProdate() {
        return prodate;
    }

    public void setProdate(Date prodate) {
        this.prodate = prodate;
    }

    public String getPromer() {
        return promer;
    }

    public void setPromer(String promer) {
        this.promer = promer == null ? null : promer.trim();
    }

    public String getStockmer() {
        return stockmer;
    }

    public void setStockmer(String stockmer) {
        this.stockmer = stockmer == null ? null : stockmer.trim();
    }

    public Date getBuydate() {
        return buydate;
    }

    public void setBuydate(Date buydate) {
        this.buydate = buydate;
    }

    public Float getRepairtime() {
        return repairtime;
    }

    public void setRepairtime(Float repairtime) {
        this.repairtime = repairtime;
    }

    public Float getRestricttime() {
        return restricttime;
    }

    public void setRestricttime(Float restricttime) {
        this.restricttime = restricttime;
    }

    public Float getBuymoney() {
        return buymoney;
    }

    public void setBuymoney(Float buymoney) {
        this.buymoney = buymoney;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    public String getStates() {
        return states;
    }

    public void setStates(String states) {
        this.states = states == null ? null : states.trim();
    }
}